﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wpf.Netdisk.Models.BaseModel;

namespace Wpf.Netdisk.Services.Common
{
    public interface IBaseService<TEntity> where TEntity : class
    {
        Task<PageViewModel> GetListAsync<T>(T dto) where T: QueryParameter;
        Task<ApiResult<TEntity>> SaveAsync(TEntity saveDto);
        Task<ApiResult> ActiveAsync(AdminActiveListDto adminActiveListDto);
        Task<ApiResult<TEntity>> GetInfoByIdAsync(string id);
    }
}
